package com.dev.common.freemarker.tag;

import freemarker.template.SimpleHash;

/**
 * Shortcut for injecting the tags into Freemarker
 * 
 * @Description
 * @author Shiwen .Li
 * @date 2016年8月14日 上午11:38:11
 * @version V1.3.1
 */

public class ShiroShiroTags extends SimpleHash {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public ShiroShiroTags() {
		put("authenticated", new AuthenticatedTag());
		put("guest", new GuestTag());
		put("hasAnyRoles", new HasAnyRolesTag());
		put("hasPermission", new HasPermissionTag());
		put("hasRole", new HasRoleTag());
		put("lacksPermission", new LacksPermissionTag());
		put("lacksRole", new LacksRoleTag());
		put("notAuthenticated", new NotAuthenticatedTag());
		put("principal", new PrincipalTag());
		put("user", new UserTag());
	}
}
